package com.sun.showcase.client.domain.mall;

import org.apache.commons.lang3.builder.EqualsBuilder;
import org.apache.commons.lang3.builder.HashCodeBuilder;
import org.apache.commons.lang3.builder.ToStringBuilder;

public class Sku implements java.io.Serializable{
	private static final long serialVersionUID = 5454155825314635342L;
    /**
     * ID       db_column: id 
     */	
	private java.lang.String id;
    /**
     * 编码       db_column: code 
     */	
	private java.lang.String code;
    /**
     * 名称       db_column: name 
     */	
	private java.lang.String name;
    /**
     * 规格       db_column: format 
     */	
	private java.lang.String format;
    /**
     * 厂家指导价       db_column: guide_price 
     */	
	private Double guidePrice;
    /**
     * 进价       db_column: purchase_price 
     */	
	private Double purchasePrice;
    /**
     * 标价       db_column: sell_price 
     */	
	private Double sellPrice;
    /**
     * 库存数量       db_column: count 
     */	
	private java.lang.Integer count;
    /**
     * 销售数量       db_column: sell_count 
     */	
	private java.lang.Integer sellCount;
    /**
     * 累计销量       db_column: sell_count_total 
     */	
	private java.lang.Integer sellCountTotal;
    /**
     * 商品id       db_column: goods_id 
     */	
	private java.lang.String goodsId;
    /**
     * 商品名       db_column: goods_name 
     */	
	private java.lang.String goodsName;
    /**
     * sku属性id       db_column: sku_attribute_id 
     */	
	private java.lang.String skuAttributeId;
    /**
     * sku json 值       db_column: sku_json_value 
     */	
	private java.lang.String skuJsonValue;
    /**
     * 是否出售（1是0否）       db_column: salability 
     */	
	private java.lang.String salability;
    /**
     * 有效标记(默认为1有效 0无效）       db_column: active_flag 
     */	
	private java.lang.String activeFlag;
    /**
     * 创建人ID       db_column: create_by 
     */	
	private java.lang.String createBy;
    /**
     * 创建人姓名       db_column: create_by_name 
     */	
	private java.lang.String createByName;
    /**
     * 创建时间       db_column: create_date 
     */	
	private java.util.Date createDate;
    /**
     * 修改人ID       db_column: modified_by 
     */	
	private java.lang.String modifiedBy;
    /**
     * 修改人姓名       db_column: modified_by_name 
     */	
	private java.lang.String modifiedByName;
    /**
     * 修改时间       db_column: modified_date 
     */	
	private java.util.Date modifiedDate;
	//columns END

	public Sku(){
	}

	public Sku(
		java.lang.String id
	){
		this.id = id;
	}

	public void setId(java.lang.String value) {
		this.id = value;
	}
	
	public java.lang.String getId() {
		return this.id;
	}
	public void setCode(java.lang.String value) {
		this.code = value;
	}
	
	public java.lang.String getCode() {
		return this.code;
	}
	public void setName(java.lang.String value) {
		this.name = value;
	}
	
	public java.lang.String getName() {
		return this.name;
	}
	public void setFormat(java.lang.String value) {
		this.format = value;
	}
	
	public java.lang.String getFormat() {
		return this.format;
	}
	public void setGuidePrice(Double value) {
		this.guidePrice = value;
	}
	
	public Double getGuidePrice() {
		return this.guidePrice;
	}
	public void setPurchasePrice(Double value) {
		this.purchasePrice = value;
	}
	
	public Double getPurchasePrice() {
		return this.purchasePrice;
	}
	public void setSellPrice(Double value) {
		this.sellPrice = value;
	}
	
	public Double getSellPrice() {
		return this.sellPrice;
	}
	public void setCount(java.lang.Integer value) {
		this.count = value;
	}
	
	public java.lang.Integer getCount() {
		return this.count;
	}
	public void setSellCount(java.lang.Integer value) {
		this.sellCount = value;
	}
	
	public java.lang.Integer getSellCount() {
		return this.sellCount;
	}
	public void setSellCountTotal(java.lang.Integer value) {
		this.sellCountTotal = value;
	}
	
	public java.lang.Integer getSellCountTotal() {
		return this.sellCountTotal;
	}
	public void setGoodsId(java.lang.String value) {
		this.goodsId = value;
	}
	
	public java.lang.String getGoodsId() {
		return this.goodsId;
	}
	public void setGoodsName(java.lang.String value) {
		this.goodsName = value;
	}
	
	public java.lang.String getGoodsName() {
		return this.goodsName;
	}
	public void setSkuAttributeId(java.lang.String value) {
		this.skuAttributeId = value;
	}
	
	public java.lang.String getSkuAttributeId() {
		return this.skuAttributeId;
	}
	public void setSkuJsonValue(java.lang.String value) {
		this.skuJsonValue = value;
	}
	
	public java.lang.String getSkuJsonValue() {
		return this.skuJsonValue;
	}
	public void setSalability(java.lang.String value) {
		this.salability = value;
	}
	
	public java.lang.String getSalability() {
		return this.salability;
	}
	public void setActiveFlag(java.lang.String value) {
		this.activeFlag = value;
	}
	
	public java.lang.String getActiveFlag() {
		return this.activeFlag;
	}
	public void setCreateBy(java.lang.String value) {
		this.createBy = value;
	}
	
	public java.lang.String getCreateBy() {
		return this.createBy;
	}
	public void setCreateByName(java.lang.String value) {
		this.createByName = value;
	}
	
	public java.lang.String getCreateByName() {
		return this.createByName;
	}
	public void setCreateDate(java.util.Date value) {
		this.createDate = value;
	}
	
	public java.util.Date getCreateDate() {
		return this.createDate;
	}
	public void setModifiedBy(java.lang.String value) {
		this.modifiedBy = value;
	}
	
	public java.lang.String getModifiedBy() {
		return this.modifiedBy;
	}
	public void setModifiedByName(java.lang.String value) {
		this.modifiedByName = value;
	}
	
	public java.lang.String getModifiedByName() {
		return this.modifiedByName;
	}
	public void setModifiedDate(java.util.Date value) {
		this.modifiedDate = value;
	}
	
	public java.util.Date getModifiedDate() {
		return this.modifiedDate;
	}

	public String toString() {
		return ToStringBuilder.reflectionToString(this);
	}
	
	public int hashCode() {
		return new HashCodeBuilder()
			.append(getId())
			.toHashCode();
	}
	
	public boolean equals(Object obj) {
		if(obj instanceof Sku == false) return false;
		if(this == obj) return true;
		Sku other = (Sku)obj;
		return new EqualsBuilder()
			.append(getId(),other.getId())
			.isEquals();
	}
}

